package org.datedemo;

import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

public class LocalTime1 {

    public static void main(String[] args) {
        //LocalTime t = LocalTime.MAX;
        //System.out.println(t);

        LocalDate now = LocalDate.now();
        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy年MM月dd日 E");
        System.out.println(df.format(now));


        var t = LocalTime.now();
        //时 分 秒 毫秒
        System.out.println(t.format(DateTimeFormatter.ofPattern("hh:mm:ss SSS")));

    }
}
